package org.vacuela.attendance;

import javax.persistence.Entity;

import com.u2d.model.AbstractComplexEObject;
import com.u2d.model.Title;
import com.u2d.type.atom.StringEO;

@Entity
public class Category extends AbstractComplexEObject {
	private final StringEO _name = new StringEO();

	public static String[] identities = { "name" };

	private Company company;

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {

		Company oldCompany = this.company;
		this.company = company;
		firePropertyChange("company", oldCompany, this.company);
	}

	public static final String companyInverseFieldName = "categories";

	public Category() {
	}

	public StringEO getName() {
		return _name;
	}

	public Title title() {
		return _name.title();
	}

}
